package com.dragon.modules.yuegou.model.wallet;

import com.dragon.modules.yuegou.entity.wallet.MemberCardBuyEntity;
import com.dragon.modules.yuegou.enums.wallet.MemberCardBuyPayCurrency;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 会员购买悦卡模型类
 * 
 * @author pbuilder generated
 * @date 2019-03-05 11:27:23
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class MemberCardBuy extends MemberCardBuyEntity {

	@ApiModelProperty("卡类型")
	private String cardType;//卡类型

	@ApiModelProperty("购买")
	private String recordType;//购买

	@ApiModelProperty("手机")
	private String mobile;//手机

	@ApiModelProperty("卡名称")
	private String title;//卡名称

	@ApiModelProperty("卡号")
	private String cardNo;//卡号

	@ApiModelProperty("公司")
	private String companyName;//公司

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getRecordType() {
		return recordType;
	}

	public void setRecordType(String recordType) {
		this.recordType = recordType;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	/**
	 * 构造一个空会员购买悦卡模型对象
	 */
	public MemberCardBuy(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员购买悦卡模型对象
	 * 
	 * @param entity 实体对象
	 */
	public MemberCardBuy(MemberCardBuyEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员购买悦卡模型对象
	 * 
	 * @param other 其它对象
	 */
	public MemberCardBuy(MemberCardBuy other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置购买记录ID
	 * 
	 * @param id 购买记录ID
	 * @return 当前对象
	 */
    public MemberCardBuy id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public MemberCardBuy orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID（冗余ID）
	 * 
	 * @param memberId 会员ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberCardBuy memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getMemberWalletId() {
    	return memberWalletId;
    }

    /**
	 * 设置会员钱包ID（冗余ID）
	 * 
	 * @param memberWalletId 会员钱包ID（冗余ID）
	 * @return 当前对象
	 */
    public MemberCardBuy memberWalletId(String memberWalletId) {
    	this.memberWalletId = memberWalletId;
    	return this;
    }

	@Override
	public String getCardTemplateId() {
    	return cardTemplateId;
    }

    /**
	 * 设置悦卡模板ID
	 * 
	 * @param cardTemplateId 悦卡模板ID
	 * @return 当前对象
	 */
    public MemberCardBuy cardTemplateId(String cardTemplateId) {
    	this.cardTemplateId = cardTemplateId;
    	return this;
    }

	@Override
	public String getMemberCardId() {
    	return memberCardId;
    }

    /**
	 * 设置购得的会员悦卡ID
	 * 
	 * @param memberCardId 购得的会员悦卡ID
	 * @return 当前对象
	 */
    public MemberCardBuy memberCardId(String memberCardId) {
    	this.memberCardId = memberCardId;
    	return this;
    }

	@Override
	public BigDecimal getAmount() {
    	return amount;
    }

    /**
	 * 设置悦卡面值（冗余）
	 * 
	 * @param amount 悦卡面值（冗余）
	 * @return 当前对象
	 */
    public MemberCardBuy amount(BigDecimal amount) {
    	this.amount = amount;
    	return this;
    }

	@Override
	public BigDecimal getPayFee() {
    	return payFee;
    }

    /**
	 * 设置支付的金额
	 * 
	 * @param payFee 支付的金额
	 * @return 当前对象
	 */
    public MemberCardBuy payFee(BigDecimal payFee) {
    	this.payFee = payFee;
    	return this;
    }

	@Override
	public MemberCardBuyPayCurrency getPayCurrency() {
    	return payCurrency;
    }

    /**
	 * 设置[枚举]用于购买悦卡的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY
	 * 
	 * @param payCurrency [枚举]用于购买悦卡的币种：4-微信虚拟币-WECHAT、5-支付宝虚拟币-ALIPAY
	 * @return 当前对象
	 */
    public MemberCardBuy payCurrency(MemberCardBuyPayCurrency payCurrency) {
    	this.payCurrency = payCurrency;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置购买时间
	 * 
	 * @param createdTime 购买时间
	 * @return 当前对象
	 */
    public MemberCardBuy createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getThirdMchId() {
    	return thirdMchId;
    }

    /**
	 * 设置第三方商户号，与第三方商户号发生交易时存在，示例：微信商户号 wx_1501780391，微信服务商商户号 wx_1505108951_1533645041，支付宝商户号：ali_2088331430099501
	 * 
	 * @param thirdMchId 第三方商户号，与第三方商户号发生交易时存在，示例：微信商户号 wx_1501780391，微信服务商商户号 wx_1505108951_1533645041，支付宝商户号：ali_2088331430099501
	 * @return 当前对象
	 */
    public MemberCardBuy thirdMchId(String thirdMchId) {
    	this.thirdMchId = thirdMchId;
    	return this;
    }
}
